<?php

namespace BigVideo\Examples\Features;

/**
 * Class SkinFeatures
 * @package BigVideo\Examples\Features
 */
class SkinFeatures extends FeaturesInstance
{
    const SKIN_NAME = 'SkinFeatures';

    const SKIN_TYPE_MID = "yellow";

    private $show;

    /**
     * @param $key
     * @return $this
     */
    public function saveKey($key)
    {
        $this->show = $this->enumType($key);
        return $this;
    }

    public function output()
    {
        return $this->show;
    }

    /**
     * @param $key
     * @return string
     */
    public function enumType($key)
    {
        $hairTypes = [
            self::SKIN_TYPE_MID=>"黄色皮肤",
        ];
        if (isset($hairTypes[$key]))return $hairTypes[$key];
        return "没有选择的皮肤";
    }
}